package com.david.interview.step1;

/**
 * @author David
 * @version V1.0
 * @Package com.david.interview.step1
 * @date 2021/7/2 15:40
 */
public class P06 {
    static int s;
    int i;
    int j;

    {
        int i = 1;
        i++;
        j++;
        s++;
    }
    public void test(int j) {
        j++;
        i++; //1 2
        s++; //2 3
    }

    public static void main(String[] args) {
        P06 obj1 = new P06();
        P06 obj2 = new P06();
        obj1.test(10);
        obj1.test(20);
        obj2.test(30);
        System.out.println(obj1.i + "," + obj1.j + "," + obj1.s);
        System.out.println(obj2.i + "," + obj2.j + "," + obj2.s);
    }
}
